package br.com.lumis.ims.model;

import java.math.BigDecimal;
import java.util.Date;

public class Metrica implements Comparable<Metrica> {
	
	private Date timestamp;
	
	private BigDecimal valor;

	public Date getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(Date timestamp) {
		this.timestamp = timestamp;
	}

	public BigDecimal getValor() {
		return valor;
	}

	public void setValor(BigDecimal valor) {
		this.valor = valor;
	}

	@Override
	public int compareTo(Metrica o) {
		return this.timestamp.compareTo(o.getTimestamp());
	}
	
}
